package com.example.pmxt.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@TableName("sys_region")
public class Region {

    @NotNull(message = "id不能为空")
    @NotBlank(message = "id不能为空")
    @ExcelProperty("编号")
    private String id;

    @NotNull(message = "名称不能为空")
    @NotBlank(message = "名称不能为空")
    @ExcelProperty("名称")
    private String name;

    @NotNull(message = "父类id不能为空")
    @NotBlank(message = "父类id不能为空")
    @ExcelProperty("父类id")
    private String parentId;

    @ExcelProperty("备注")
    private String remark;

}
